﻿using System;

namespace DesignPattern.FactoryMethod {
    public interface IFactory {
        IProduct CreateInstance();
    }

    public interface IProduct {

    }

    public class Factory : IFactory
    {
        public IProduct CreateInstance()
        {
            return new Product();
        }
    }

    public class Product : IProduct
    {
        
    }
}